package com.ikun.search.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ikun.common.entity.Comment;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ikun.search.mapper.CommentMapper;
import com.ikun.search.service.CommentService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 医生评价表 服务实现类
 *
 * @author Guio
 * @since 2024-02-26
 */
@DS("user")
@Service
public class CommentServiceImpl extends ServiceImpl<CommentMapper, Comment> implements CommentService {

    /**
     * 根据医生id查询评价集合
     */
    @Override
    public List<Comment> getScoreByDockerId(Integer docker) {
        return this.list(new QueryWrapper<Comment>().eq("docker_id", docker));
    }

}
